package com.lz.yz.member.service.impl;

import com.lz.yz.core.AbstractService;
import com.lz.yz.member.dao.PropertyInfoMapper;
import com.lz.yz.member.entity.PropertyInfo;
import com.lz.yz.member.service.PropertyInfoService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.math.BigDecimal;


/**
 * Created by CodeGenerator on 2017/11/09.
 */
@Service
@Transactional
public class PropertyInfoServiceImpl extends AbstractService<PropertyInfo> implements PropertyInfoService {
    @Resource
    private PropertyInfoMapper propertyInfoMapper;

    @Override
    public int increaseIntegral(Integer accountId, BigDecimal value) {
        return propertyInfoMapper.increaseIntegral(accountId,value);
    }

    @Override
    public int decreaseIntegral(Integer accountId, BigDecimal value) {
        return propertyInfoMapper.decreaseIntegral(accountId,value);
    }

    @Override
    public int increaseBalance(Integer accountId, BigDecimal value) {
        return propertyInfoMapper.increaseBalance(accountId,value);
    }

    @Override
    public int decreaseBalance(Integer accountId, BigDecimal value) {
        return propertyInfoMapper.decreaseBalance(accountId,value);
    }

}
